#include "socketServerData.h"

SocketServerData::SocketServerData( DnsServerConfiguration *dnsServerConfiguration, UDPMessageQueue* resolverQueue )
{
	dnsServerConfiguration_ = dnsServerConfiguration;
	resolverQueue_ = resolverQueue;
}

SocketServerData::~SocketServerData()
{
}

void SocketServerData::verbose( const std::string &message )
{
	dnsServerConfiguration_->verbose( message );
}

uint16_t SocketServerData::listenPort( ) const
{
	return dnsServerConfiguration_->listenPort();
}

std::string SocketServerData::listenAddress() const
{
	return dnsServerConfiguration_->listenAddress();
}

void SocketServerData::pushResolverQueue( const UDPMessage &p )
{
	resolverQueue_->push( p );
}

